package com.im.pojoClass;

public enum ResultCode {
    SUCCESS(200,"操作成功"),
    RECEIVE_FRIENDS(201,"收到好友申请"),
    RECEIVE_MESSAGE(202,"接收到消息"),
    AGREE_FRIENDS(203,"对方同意添加好友"),
    VIDEO(204,""),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404,"参数校验失败"),
    UNAUTHORIZED(401,"未登录或Token已过期"),
    FORBIDDEN(403,"权限不足");

    private Integer code;
    private String message;

    ResultCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer code(){
        return this.code;
    }

    public String message(){
        return this.message;
    }
}
